package adapter.fromKanYun.IsObject;

public class Adapter implements Targetable {

    private Original original;

    public Original getOriginal() {
        return original;
    }

    public void setOriginal(Original original) {
        this.original = original;
    }

    public Adapter(Original original) {
        this.original = original;
    }

    @Override
    public void originMethod() {
        original.originMethod();
    }

    @Override
    public void targetMethod() {
        System.out.println("this is Chessman target method...");
    }
}
